Skip to content

fix(redirects): add no-slash redirect for /agent-platform/capabilities/computer-use - #485

Merged
hongyi-chen merged 3 commits into
mainfrom
factory/quality-1520-no-slash-computer-use-redirect
Aug 7, 2026
Merged

fix(redirects): add no-slash redirect for /agent-platform/capabilities/computer-use#485
hongyi-chen merged 3 commits into
mainfrom
factory/quality-1520-no-slash-computer-use-redirect

Conversation

@warp-agent-staging

@warp-agent-staging warp-agent-staging Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

https://docs.warp.dev/agent-platform/capabilities/computer-use (no trailing slash) — the URL published in a blog post — returns 404. Vercel matches redirect source values as exact path strings, so the existing /agent-platform/capabilities/computer-use/ rule (trailing slash) never fires for the no-slash form.

This adds the missing no-slash twin in vercel.json, pointing at the same canonical destination and using the same permanent 308 status as its neighbors:

{
  "source": "/agent-platform/capabilities/computer-use",
  "destination": "/agents/capabilities/computer-use/",
  "statusCode": 308
}

The existing trailing-slash rule is left untouched. Scope is deliberately limited to the reported path; other /agent-platform/capabilities/* entries share the same gap but are out of scope here.

Verification

Live check against this PR's Vercel preview deployment (docs-git-factory-quality-1520-no-slash-comput-cd831c-warpdotdev.vercel.app):

Request Result
GET /agent-platform/capabilities/computer-use (no slash) 308/agents/capabilities/computer-use/, following it lands 200
GET /agent-platform/capabilities/computer-use/ (existing rule) 308/agents/capabilities/computer-use/ — unchanged
GET /agents/capabilities/computer-use (canonical) 200
GET https://docs.warp.dev/agent-platform/capabilities/computer-use (production, unfixed) 404 — the reported symptom

Repo checks

Regression test — testing-exempt category: config-only. The change is one declarative redirect entry; a unit test could only assert the literal value back rather than detect a logic defect, and the behavior itself is produced by the Vercel platform at request time. The live preview checks above are the deterministic proof.

Closes QUALITY-1520.

Computer-use video recordings

Loading the production no-slash docs URL, then the preview deployment's no-slash URL and the page it resolves to, then the preview trailing-slash URL, keeping the address bar visible throughout.
Visiting production and preview docs URLs: Loading the production no-slash docs URL, then the preview deployment's no-slash URL and the page it resolves to, then the preview trailing-slash URL, keeping the address bar visible throughout.

Computer-use screenshots (2)

Production docs.warp.dev no-slash URL showing a "Page not found" page with the address bar visible.
Production docs.warp.dev no-slash URL showing a "Page not found" page with the address bar visible.

Preview deployment no-slash URL redirected to /agents/capabilities/computer-use/ showing the "Computer Use for agents" documentation page with the address bar visible.
Preview deployment no-slash URL redirected to /agents/capabilities/computer-use/ showing the "Computer Use for agents" documentation page with the address bar visible.

Originating thread: https://warpdev.slack.com/archives/C0BDQDW8V5E/p1786036844862749

…s/computer-use

Vercel matches redirect sources as exact path strings, so the existing
trailing-slash rule never fires for the no-slash URL published in a blog
post, which 404s instead of reaching the canonical Computer Use page.

Co-Authored-By: Warp <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Aug 6, 2026
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 7, 2026 3:17pm

Request Review

@warp-agent-staging warp-agent-staging Bot added the warpy-factory Opened by the Warp factory agents label Aug 6, 2026
@warp-agent-staging
warp-agent-staging Bot marked this pull request as ready for review August 6, 2026 17:58
@oz-for-oss

oz-for-oss Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

@warp-agent-staging[bot]

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR adds the missing no-slash Vercel redirect for /agent-platform/capabilities/computer-use, matching the existing trailing-slash redirect to /agents/capabilities/computer-use/ with a permanent 308.

Concerns

  • None.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

CodeQL default-setup jobs were cancelled after sitting queued without a
runner. Empty commit to retrigger checks.

Co-Authored-By: Warp Agent <agent@warp.dev>
@hongyi-chen
hongyi-chen merged commit 5a339eb into main Aug 7, 2026
5 of 6 checks passed
@hongyi-chen
hongyi-chen deleted the factory/quality-1520-no-slash-computer-use-redirect branch August 7, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed warpy-factory Opened by the Warp factory agents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants